
/**
  ******************************************************************************
  * @file    stm32l0xx_it.c
  * @brief   Interrupt Service Routines.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under BSD 3-Clause license,
  * the "License"; You may not use this file except in compliance with the
  * License. You may obtain a copy of the License at:
  *                        opensource.org/licenses/BSD-3-Clause
  *
  ******************************************************************************
  */



#include "main.h"
#include "stm32l0xx_it.h"


#include "usart.h"

































extern RTC_HandleTypeDef hrtc;
extern UART_HandleTypeDef huart1;







/**
  * @brief This function handles Non maskable interrupt.
  */
void NMI_Handler(void)
{
  

  
  
  while (1)
  {
  }
  
}

/**
  * @brief This function handles Hard fault interrupt.
  */
void HardFault_Handler(void)
{
  

  
  while (1)
  {
    
		
		SysPrintf("HardFault-sys-reboot\r\n");
		NVIC_SystemReset();
		
    
  }
}

/**
  * @brief This function handles System service call via SWI instruction.
  */
void SVC_Handler(void)
{
  

  
  

  
}

/**
  * @brief This function handles Pendable request for system service.
  */
void PendSV_Handler(void)
{
  

  
  

  
}

/**
  * @brief This function handles System tick timer.
  */
void SysTick_Handler(void)
{
  

  
  HAL_IncTick();
  

  
}








/**
  * @brief This function handles RTC global interrupt through EXTI lines 17, 19 and 20 and LSE CSS interrupt through EXTI line 19.
  */
void RTC_IRQHandler(void)
{
  

  
  HAL_RTCEx_WakeUpTimerIRQHandler(&hrtc);
  

  
}

/**
  * @brief This function handles EXTI line 0 and line 1 interrupts.
  */
void EXTI0_1_IRQHandler(void)
{
  

  
  HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_0);
  HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_1);
  

  
}

/**
  * @brief This function handles EXTI line 2 and line 3 interrupts.
  */
void EXTI2_3_IRQHandler(void)
{
  

  
  HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_3);
  

  
}

/**
  * @brief This function handles EXTI line 4 to 15 interrupts.
  */
void EXTI4_15_IRQHandler(void)
{
  

  
  HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_4);
  

  
}

/**
  * @brief This function handles USART1 global interrupt / USART1 wake-up interrupt through EXTI line 25.
  */
void USART1_IRQHandler(void)
{
  

  
  HAL_UART_IRQHandler(&huart1);
  

  
}





